cmake_minimum_required(VERSION 3.20)

project(cusedit)

# set(CMAKE_C_FLAGS "-m32")
# set(CMAKE_CXX_FLAGS "-m32")

# win32_toolchain.cmake
# set(CMAKE_SYSTEM_NAME Windows)
# set(CMAKE_SYSTEM_PROCESSOR x86)  # 指定目标架构为 32 位

# # 强制使用 32 位编译器（需提前设置环境变量）
# set(CMAKE_C_COMPILER "cl.exe")
# set(CMAKE_CXX_COMPILER "cl.exe")

add_subdirectory(ast)
add_subdirectory(compiler)
add_subdirectory(core)
add_subdirectory(edit)
add_subdirectory(log)
add_subdirectory(plugins)